<script type="text/javascript" src="/Inc/AspBox/jsLib/des.js"></script>
<script type="text/javascript">
enkey = "123123123123123123123123"; //8位，16位，或24位密钥
var text = "www.Baidu.com"; //要加密的原字符串 不支持中文
var entext = endes(enkey, text); //加密
var otext = dedes(enkey, entext); //解密(还原)

document.writeln(entext+''); //EEo+UV32GqzvjgMTWAO3XA==
document.writeln(otext+''); //www.Baidu.com
</script>